package views
{
	
	import inerface.IComment;
	
	import main.ViewSubBase;
	
	import panel.viewSpots.CommentPanel;
	
	public class CommentListView extends ViewSubBase
	{
		private var _panel:IComment;
		public function CommentListView()
		{
			super();
		}
		
		override public function show():void
		{
                render();
		}
		
		override protected function render():void
		{
			if(!_panel)
			{
				_panel = new CommentPanel();
				_panel.init(this.view.layout.stage,this.resourceLoader,this.lang,this.data.uri);
				_panel.onOpenInsertComment = view.comment.show;
			}
			_panel.show(this.data.viewSpot.commentListData);
               this.addView(_panel);
		}
		
		override public function clear():void
		{
			_panel.clear();
		}
		
	}
}